/**
 * 
 */
package customer;



import java.util.ArrayList;
import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;



/**
 * @author Nugumanova V.
 *
 */
public class CustomerQueue  {
	private static final Logger LOGGER = LoggerFactory
			.getLogger(CustomerQueue.class);

	
	private List<Thread> listThread = new ArrayList<Thread>();

	CustomerQueue() {

	}

	public void addCustomer(Thread thread) {
		listThread.add(thread) ;
		LOGGER.info(thread.getClass().toString() + "was added to the queue");
	}
	
	public void removeCustomer (Thread thread){
		listThread.remove(thread);
		LOGGER.info(thread.getClass().toString() + "was removed from the queue");
	}

	public List<Thread> getListThread() {
		return listThread;
	}
	
	
}
